package com.wandian.ui.controls
{
	import flash.text.TextField;
	import flash.text.TextFormat;

	public class UITextField extends TextField
	{
		public function UITextField(w:int, h:int=20, color:int=0xFFFFFF, size:int=12, bold:Boolean=false, font:String="Arial", center:Boolean=true)
		{

			this.selectable=false
			var format:TextFormat=new TextFormat();
			format.color=color
			format.size=size
			format.font=font
			format.bold=bold
			if (center)
			{
				format.align="center"
			}
			//this.border=true
			//this.borderColor=0xFF0000
			this.defaultTextFormat=format
			this.width=w
			this.height=h
		}
	}
}
